package com.jfinal.weixin.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class UtilTest {
	public static void main(String[] args) {
		HttpClientUtil hcu = new HttpClientUtil();
		
		String url="http://127.0.0.1:8080/act/user/login";
		
		JSONObject jo1=new JSONObject();
		jo1.put("username", "yuming.zhu");
		jo1.put("password", "ele.me4551");
		String jsonparameString=jo1.toString();
		System.out.println(jsonparameString);
		try {
		 String body=hcu.post(url, jsonparameString);
		 System.out.println("------------------");
		 System.out.println(body);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
